package com.shareppy.normanapitest.lexic.lexemes;

import com.shareppy.normanapitest.lexic.Lexeme;
import com.shareppy.normanapitest.lexic.LexemeType;

public class OperatorLexeme extends Lexeme {

	public OperatorLexeme() {
		super(LexemeType.OPERATOR);
	}
	
	@Override
	public LexemeState supports(char ch) {
		if( ch == '.' ){
			return LexemeState.START;
		}
		if( ch == '[' ){
			return LexemeState.START;
		}
		if( ch == ']' ){
			return LexemeState.START;
		}
		if( ch == '=' ){
			return LexemeState.START;
		}
		return LexemeState.END;
	}
}